package com.shxc.smarttrade.utils;

import android.util.Log;

import com.shxc.smarttrade.info.ContentsSwitch;


public class Loger {

    //日志开关
    private static boolean logSwitch = ContentsSwitch.LOGSWITCH;

    public static void e(String tag, long error) {
        if (logSwitch) {
            Log.e(tag, error + "");
        }
    }

    public static void e(String tag, String error) {
        if (logSwitch) {
            Log.e(tag, error);
        }
    }

    public static void e(String tag, int error) {
        if (logSwitch) {
            Log.e(tag, error + "");
        }
    }

    public static void e(String tag, boolean error) {
        if (logSwitch) {
            Log.e(tag, error + "");
        }
    }

    public static void i(String tag, String info) {
        if (logSwitch) {
            Log.i(tag, info);
        }
    }
}
